package shared.runtime

import org.jgroups._

case class AddressInformation(val add: Address, val name: String) {
  override def toString = name
  override def hashCode = name.hashCode
  override def equals(a: Any) = {
    a match {
      case AddressInformation(address, host) => name == host && (add.asInstanceOf[Comparable[Address]].compareTo(address) == 0) 
      case _ => false
    }
  }
}
